﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Douban.Api.Infrastructure;
using Douban.Api.User;

namespace Douban.Api.Mail
{
    [Entry]
    public class Message : EntryItem
    {
        [Id]
        public string Id { get; set; }

        [Element("title")]
        public string Title { get; set; }
        
        [Element("published")]
        public DateTime PublishedDate { get; set; }

        [AttributeElement("unread")]
        public bool Unread { get; set; }

        [Element("author")]
        public Author Sender { get; set; }

        [Entity("receiver")]
        public Author Receiver { get; set; }

        [Element("content")]
        public string Content { get; set; }
    }
}
